
import {
	defineStore
} from 'pinia'
export const useCartStore = defineStore('cart', {
	unistorage: true,
	state: () => {
		return {
			cartList: [],
			order: {}
		}
	},
	actions: {
		addCart(ct) {
			this.cartList = []
			this.cartList = ct
		},
		addOrder(ct) {
			console.log("pinia", ct);
			this.order = ''
			this.order = ct
		}
	}
})